<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<select id="yearSel"></select>
		<select id="monthSel"></select>
		<select id="daySel"></select>
		<script>
			for(var i=1990;i<=2024;i++)
			{
				var tmpOption =document.createElement("option");
					var txtNode=document.createTextNode(i+"年");
					tmpOption.appendChild(txtNode);
					yearSel.appendChild(tmpOption);
				
			}
			function change()
			{
				console.log(yearSel.value);
			}
		</script>
	</body>
</html>
